import React, {Component} from 'react';
import Grandson from "./Grandson";
import './Son.css';
import Crandson2 from "./Crandson2";

class Son extends Component {
  state = {
    name: '你爸爸',
    left: '你的阿姨',
    right: '隔壁你王姨',
    age: 30,
    nickname: '隔壁老王'
  };

  render() {
    return (
      <div>
        <Grandson toChild={this.props.toChild}/>
        {/*<Crandson2 name={this.state.name} left={this.state.left}/>*/}
        <Crandson2 {...this.state}/>
      </div>
    );
  }
}

export default Son;
